package ca.liu.study.springdata.jpa.repository;

import javax.inject.Inject;
import javax.persistence.EntityManagerFactory;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:context.xml")
@Transactional
public class Sandbox {
	@Inject
	private EntityManagerFactory entityManagerFactory;
	
	@Test
	public void sandbox() {
		p(entityManagerFactory);
	}
	
	private void p(Object obj) {
		System.out.println(obj == null ? "null" : obj.toString());
	}
}
